package xfuzzy.alg_genetico.indeterminado.stop;

import xfuzzy.xfghl.algorithm.ResultGA;

public class OptimusValue extends StopCondition {
	
	private double value;
	
	public OptimusValue(double value)  {
		
		this.value = value;
	}
	
	public double getValue() {
		return value;
	}

	public void setValue(double value) {
		this.value = value;
	}

	public boolean parar(ResultGA conf) {
		
		if (conf.getBest() <= this.value)
			return true;
		return false;
	}
}
